import request from '@/utils/request'
/**
 * 我的个人信息
 * @param params 
 * @returns 
 */
export function userInfoAPI() {
    return request({
        url: '/clicent/user_info'
    })
}
/**
 * 图片上传接口
 *  @data
 * @returns 
 */
export function uploadImageAPI(data: any) {
    return request({
        url: '/upload/image',
        method: 'post',
        data
    })
}
/**
 * 个人信息保存接口
 * @param data 
 * @returns 
 */
export function userModifyAPI(data: any) {
    return request({
        url: '/user/modify',
        method: 'put',
        data
    })
}

/**
 * 我的收藏
 * @param params 
 * @returns 
 */
export function userCollectionAPI() {
    return request({
        url: '/task/getTaskCollection',
        method: 'get',
    })
}
/**
 * 体现列表
 * @param params 
 * @returns 
 */
export function transferListAPI() {
    return request({
        url: '/my/transfer/userList',
        method: 'get',
    })
}
/**
 * 账户收益
 * @returns 
 */
export function incomeListAPI() {
    return request({
        url: '/admin/task/purchaseRecord?type=1'
    })
}

// 我的提现接口
export function withdrawalAPI(data: any) {
    return request({
        url: '/my/apply/transfer',
        method: 'post',
        data
    })
}
// 我的简历详情接口
export function resumeDetailsAPI(params: any) {
    return request({
        url: '/admin/resume/getInfoDetailsAPI',
        method: 'get',
        params
    })
}
// 简历求职意愿字典接口
export function resumeDictAPI() {
    return request({
        url: '/conllect/recuit/getRecuit',
        method: 'get',
    })
}
// 我的简历个人优势保存接口
export function personAdvantageAPI(data: any) {
    return request({
        url: '/resume/advantage',
        method: 'post',
        data
    })
}
// 我的简历求职意愿保存接口
export function personPositionAPI(data: any) {
    return request({
        url: '/resume/job_intention',
        method: 'post',
        data
    })
}
// 简历关键技能字典接口
export function labelsSkillAPI (){
    return request({
        url: '/resume/labels_skill?pid=4',
    })
}
// 修改技能关键词接口
export function jobIntentionAPI(data: any) {
    return request({
        url: '/resume/skill',
        method: 'post',
        data
    })
}
// 删除工作经历
export function workDeleteAPI(data: any) {
    return request({
        url: '/job/resume/work/delete',
        method: 'DELETE',
        params: data,
        data
    })
}
// 修改工作经历
export function workEditAPI(data: any) {
    return request({
        url: '/resume/work/edit',
        method: 'put',
        data
    })
}
// 添加工作经历
export function workAddAPI(data: any) {
    return request({
        url: '/admin/resume/work/add',
        method: 'POST',
        data
    })
}
// 删除项目经历
export function itemDeleteAPI(data: any) {
    return request({
        url: '//admin/resume/project/delete',
        method: 'DELETE',
        params: data,
        data
    })
}

// 修改项目经历
export function itemEditAPI(data: any) {
    return request({
        url: '/admin/resume/project/edit',
        method: 'put',
        data
    })
}
// 添加项目经历
export function itemAddAPI(data: any) {
    return request({
        url: '/admin/resume/project/add',
        method: 'POST',
        data
    })
}
// 修改教育经历
export function editEduAPI(data: any) {
    return request({
        url: '/resume/edu/edit',
        method: 'put',
        data
    })
}

// 实名认证保存接口
export function AddAuthRealAPI(data: any) {
    return request({
        url: '/real/auth/user',
        method: 'POST',
        data
    })
}